<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('indexa',array('uuid'=>$detail['uuid']))}">列表</a></li>
        <li class="active"><a href="{:url('edit',array('uuid'=>$detail['uuid']))}">修改</a></li>
    </ul>
    <form action="{:url('edit',array('uuid'=>$detail['uuid']))}" method="post"
          class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="20%">景区<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="spot_id" id="spot_id" aria-invalid="false"
                                    required>
                                <option value="">-请选择-</option>
                                <volist name="detail['getApispotListInfo']" id="vo">
                                    <option value="{$vo.id}" <eq name="detail['spot_id']" value="$vo['id']">selected</eq> >{$vo.spot_title}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <if condition="$Think.session.admin_is_operate eq 1">
                    <tr>
                        <th width="20%">分销商<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="supplier_id" id="supplier_id" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <volist name="detail['getApiSupplierListInfo']" id="vo">
                                    <option value="{$vo.id}" <eq name="detail['supplier_id']" value="$vo['id']">selected</eq> >{$vo.supplier_title}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                        <else/>
                            <input type="hidden" name="supplier_id" value="{$detail['getApiSupplierListInfo'][0]['id']}">
                    </if>
                    <tr>
                        <th width="20%">姓名<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="resume_name" id="resume_name" required value="{$detail.resume_name}" placeholder="请填写姓名"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">性别<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="resume_sex" id="resume_sex" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <volist name="detail['resumeSexArr']" id="vo">
                                    <option value="{$key}" <eq name="detail['resume_sex']" value="$key">selected</eq> >{$vo}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">年龄<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="resume_age" id="resume_age" required  value="{$detail.resume_age}" placeholder="请填写年龄"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">手机号<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="resume_mobile" id="resume_mobile" required value="{$detail.resume_mobile}" placeholder="请填写手机号"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">证件类型<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="id_type" id="id_type" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <volist name="detail['idTypeArr']" id="vo">
                                    <option value="{$key}" <eq name="detail['id_type']" value="$key">selected</eq> >{$vo}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">证件号码<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="resume_number" id="resume_number" required value="{$detail.resume_number}" placeholder="请填写证件号码"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">游玩日期<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control js-bootstrap-date" type="text" name="resume_date" id="resume_date" required value="{$detail.resume_date}" placeholder="请选择游玩日期"/>
                        </td>
                    </tr>

                    <if condition="$Think.session.admin_is_operate eq 1">
                        <tr>
                            <th width="20%">状态<span class="form-required">&nbsp;*&nbsp;</span></th>
                            <td>
                                <select class="form-control valid" name="status" id="status" aria-invalid="false" required>
                                    <option value="">-请选择-</option>
                                    <option value="2" <eq name="$detail['status']" value="2">selected</eq> >拒绝</option>
                                    <option value="3" <eq name="$detail['status']" value="3">selected</eq> >待审核</option>
                                    <option value="-1" <eq name="$detail['status']" value="-1">selected</eq> >关闭</option>
                                </select>
                            </td>
                        </tr>
                    </if>

                    <tr>
                        <th width="20%">备注信息<span class="form-required">&nbsp;</span></th>
                        <td>
                            <textarea class="form-control" name="resume_desc" id="resume_desc"  placeholder="请填写备注信息" style="width:100%;height:200px;resize:none;">{$detail.resume_desc}</textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
                        <a class="btn btn-default" href="{:url('index')}">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <table class="table table-bordered">

                </table>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
